/* 基础样式与变量定义 */
:root {
    --color-primary: #704214;
    --color-secondary: #556B2F;
    --color-accent: #D2B48C;
    --color-light: #FCFBF8;
    --color-dark: #2D231A;
    --color-green: #166534;
    --color-green-light: #f0fdf4;
    --color-green-border: #bbf7d0;
    --color-yellow: #92400e;
    --color-yellow-light: #fef3c7;
    --color-yellow-border: #fde68a;
    --color-red: #b91c1c;
    --color-red-light: #fee2e2;
    --color-red-border: #fecaca;
    --color-gray: #6b7280;
    --color-gray-light: #f3f4f6;
    --color-gray-border: #e5e7eb;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --transition-default: all 0.3s ease;
}

/* 布局容器 */
.main .workbench-container {
    padding: 24px;
    max-height: calc(100vh - 171px);
    overflow-y: auto;
    background-color: #FCFBF8;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23704214' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 卡片样式 */
.main .card {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-default);
}

.main .card:hover {
    box-shadow: var(--shadow-medium);
}

/* 标题样式 */
.main .section-title {
    font-family: 'Noto Serif SC', serif;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.main .section-subtitle {
    font-weight: medium;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* 按钮样式 */
.main .btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.main .btn-sm {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.main .btn-sm:active,
.main .action-button:active {
    transform: translateY(1px);
    opacity: 0.85;
}

.main .btn:hover,
.main .btn-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 欢迎区域样式 */
.main .welcome-section {
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(112, 66, 20, 0.05) 0%, rgba(85, 107, 47, 0.05) 100%);
    border: 1px solid rgba(112, 66, 20, 0.1);
}

.main .welcome-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .main .welcome-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.main .welcome-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main .icon-container {
    padding: 8px 15px;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main .icon-container_icon {
    position: relative;
    bottom: 4px
}

.main .icon-container i {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.main .welcome-greeting h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--color-primary);
}

.main .welcome-greeting p {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.main .welcome-greeting p i {
    color: var(--color-secondary);
}

.main .current-date {
    font-weight: 600;
    color: rgb(75, 85, 99);
}

.main .main_time {
    font-size: 16px !important;
}

.main .current-time-container {
    background-color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.main .time-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(85, 107, 47, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.main .time-display {
    font-weight: medium;
    font-size: 1.25rem;
}

/* 预约和操作区域样式 */
.main .appointment-and-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .main .appointment-and-actions {
        grid-template-columns: 1.2fr 1fr;
    }
}

.main .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main .action-buttons {
    display: flex;
    gap: 8px;
}

/* 自定义Ant Design Table样式 */
.main .custom-ant-table .ant-table-thead>tr>th {
    background-color: var(--color-light);
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 16px;
}

.main .custom-ant-table .ant-table-tbody>tr {
    height: 70px;
}

.main .custom-ant-table .ant-table-tbody>tr>td {
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.75rem;
}

.main .custom-ant-table .ant-table-tbody>tr:hover>td {
    background-color: var(--color-light);
}

/* 搜索框样式 */
.main .search-container {
    width: 280px;
}

.main .search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.main .search-input-focused {
    border-color: #704214;
}

.main .search-icon {
    position: relative;
    left: 13px;
    bottom: 30px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

/* 分页容器样式 */
.main .pagination-container {
    display: flex;
    justify-content: flex-end;
    padding: 20px 16px;
    border-top: 1px solid #f0f0f0;
}

.main .pagination-container .ant-pagination {
    margin: 0;
    font-size: 1rem;
}

.main .pagination-container .ant-pagination-item {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0 4px;
    border-color: #d9d9d9;
}

.main .pagination-container .ant-pagination-item-active {
    border-color: #704214;
}

.main .pagination-container .ant-pagination-item-active a {
    color: #704214;
}

.main .pagination-container .ant-pagination-prev .ant-pagination-item-link,
.main .pagination-container .ant-pagination-next .ant-pagination-item-link {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-color: #d9d9d9;
    color: #4b5563;
}

.main .pagination-container .ant-pagination-prev:hover .ant-pagination-item-link,
.main .pagination-container .ant-pagination-next:hover .ant-pagination-item-link {
    border-color: #704214;
    color: #704214;
}

.main .pagination-container .ant-pagination-total-text {
    color: #6b7280;
    margin-right: 8px;
}

/* 图标按钮样式 */
.main .btn-icon {
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.main .btn-icon i {
    font-size: 1.7rem;
}

.main .btn-icon:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 调整操作列按钮间距 */
.main .appointment-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 快速操作样式 */
.main .quick-actions.card {
    padding: 28px 24px;

}

.main .quick-actions-top {
    margin-bottom: 0;
}

.main .action-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.main .action-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-default);
    gap: 12px;
    border: none;
    min-width: 150px;
}

.main .action-button i {
    font-size: 2rem;
}

.main .action-button span {
    font-size: 1.15rem;
    font-weight: 600;
}

.main .action-button:hover {
    transform: translateY(-2px);
}

.main .action-button.primary {
    background-color: rgba(112, 66, 20, 0.1);
    color: var(--color-primary);
}

.main .action-button.secondary {
    background-color: rgba(85, 107, 47, 0.1);
    color: var(--color-secondary);
}

.main .action-button.green {
    background-color: #f0fdf4;
    color: #166534;
}

.main .action-button.blue {
    background-color: #eff6ff;
    color: #1e40af;
}

/* 美化的房间卡片样式 */
.main .rooms-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 房间卡片网格布局 - 响应式优化 */
.main .rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* 单个房间卡片 - 美化设计 */
.main .room-card {
    border-radius: 10px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-light);
    transition: var(--transition-default);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 卡片顶部装饰条 */
.main .room-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    /* 靠右 */
    width: 4px;
    height: 100%;
}

/* 根据状态设置不同的顶部装饰条颜色 */
.main .room-card.status-occupied::before {
    background-color: var(--color-red);
}

.main .room-card.status-free::before {
    background-color: var(--color-green);
}

.main .room-card.status-reserved::before {
    background-color: var(--color-yellow);
}

.main .room-card.status-disabled::before {
    background-color: var(--color-gray);
}

/* 卡片悬停效果 */
.main .room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* 房间卡片头部 */
.main .room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main .room-name {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--color-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main .room-name i {
    font-size: 1.1em;
    opacity: 0.8;
}

/* 状态标签样式 - 美化版 */
.main .room-status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main .room-status i {
    font-size: 0.8em;
}

/* 状态颜色方案 */
.main .room-status.occupied {
    background-color: var(--color-red-light);
    color: var(--color-red);
    border-color: var(--color-red-border);
}

.main .room-status.free {
    background-color: var(--color-green-light);
    color: var(--color-green);
    border-color: var(--color-green-border);
}

.main .room-status.reserved {
    background-color: var(--color-yellow-light);
    color: var(--color-yellow);
    border-color: var(--color-yellow-border);
}

.main .room-status.disabled {
    background-color: var(--color-gray-light);
    color: var(--color-gray);
    border-color: var(--color-gray-border);
}

/* 空余位置显示样式 - 美化版 */
.main .room-available-spots {
    border-top: 1px solid #f1f5f9;
    font-size: 1rem;
    color: var(--color-gray);
    padding: 0px 8px;
    margin-top: 12px;
    background-color: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    transition: var(--transition-default);
}

.main .room-available-spots::before {
    content: '•';
    color: #f59e0b;
    font-size: 1.5em;
}

.main .room-card:hover .room-available-spots {
    background-color: #f1f5f9;
}

/* 容量指示器 - 新增元素 */
.main .capacity-indicator {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.main .capacity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
}

.main .capacity-dot.occupied {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

.main .capacity-dot.available {
    background-color: transparent;
}

/* 弹窗样式 */
.main .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.main .modal.show {
    opacity: 1;
    visibility: visible;
}

.main .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.main .modal-content {
    position: relative;
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.main .modal.show .modal-content {
    transform: translateY(0);
}

.main .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}

.main .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.main .modal-close:hover {
    background-color: #f3f4f6;
}

.main .modal-body {
    padding: 24px;
    padding-bottom: 0px;
}

.main .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 表单样式 */
.main .form-group {
    margin-bottom: 20px;
}

.main .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
}

.main .form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.main .form-control:focus {
    outline: none;
    border-color: #704214;
    box-shadow: 0 0 0 3px rgba(112, 66, 20, 0.1);
}

.main .form-hint {
    margin-top: 6px;
    font-size: 0.875rem;
    color: #6b7280;
}

/* 单选按钮样式 */
.main .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.main .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4b5563;
}

.main .radio-label input {
    width: 18px;
    height: 18px;
    accent-color: #704214;
}


/* 时间组件样式改变 */
.main .modal .ant-picker-input input {
    font-size: 20px !important;
}

.ant-picker-time-panel-cell-inner {
    height: 80px !important;
    width: 80px !important;
    line-height: 80px !important;
    font-size: 20px;
}

.ant-picker-time-panel {
    width: 200px !important;
}

.ant-picker-time-panel-cell-inner {
    padding: 0px !important;
    text-align: center;
}

.ant-picker-ok .ant-btn-sm {
    padding: 27px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}


/* 确认弹窗样式 */
.main .alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.main .alert-modal.show {
    opacity: 1;
    visibility: visible;
}

.main .alert-modal-content {
    position: relative;
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.main .alert-modal.show .alert-modal-content {
    transform: translateY(0) scale(1);
}

.main .alert-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main .alert-modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--color-primary);
    font-weight: 600;
}

.main .alert-modal-body {
    padding: 24px;
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
}

.main .alert-modal-body strong {
    color: var(--color-primary);
}

.main .alert-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* 弹窗按钮样式 - 适合桌面端点击 */
.main .alert-btn {
    min-width: 120px;
    padding: 14px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main .alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main .alert-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 新客户登记弹窗优化样式 */
.main .customer-modal {
    max-width: 550px;
}

/* 性别选择优化 */
.main .gender-selection {
    margin-bottom: 25px;
}

.main .gender-options {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.main .gender-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 18px 24px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    font-size: 1.1rem;
}

.main .gender-option:hover {
    border-color: #704214;
    background-color: rgba(112, 66, 20, 0.03);
}

.main .gender-option input:checked+.gender-text+.gender-icon {
    color: #704214;
}

.main .gender-option input:checked+.gender-text {
    color: #704214;
    font-weight: 600;
}

.main .gender-option input:checked~.gender-option {
    border-color: #704214;
}

.main .gender-option input {
    position: absolute;
    opacity: 0;
}

.main .gender-icon {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: color 0.3s ease;
    margin-right: 10px;
}

/* 选中状态样式 */
.main .gender-option:has(input:checked) {
    border-color: #704214;
    background-color: rgba(112, 66, 20, 0.05);
    text-align: center;
}

/* 按钮大小优化 */
.main .customer-modal-footer {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
}

.main .customer-btn {
    padding: 16px 24px;
    font-size: 1.1rem;
    flex: 1;
    min-height: 54px;
    border-radius: 10px;
    font-weight: 500;
}

/* 表单控件优化 */
.main .customer-modal .form-control {
    padding: 16px 18px;
    font-size: 1.1rem;
    height: 56px;
}

.main .customer-modal .form-group label {
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: center;
}